A Message Disposition Notification (MDN) is a message issued by the receiver of a message.
At the very least, an MDN indicates successful delivery of a message to the
receiver, but it contains other information as well such as reporting any
errors from the received message.The
sender requests an MDN through the subject message itself or through other manual
interaction.
In Framework EDI (FREDI), you can generate an MDN using one of the
following methods:
Call BuildMDN
method on mailMessage
object. If a message has not already been loaded when this
method is called, a default MDN is created. Example, (in
Visual Basic)
Dim oMailDocument As Fredi.mailDocument
Dim oMessage As Fredi.mailMessage
(Instance of oMailDocument is created)
Set oMessage = oMailDocument.GetMessage
' Set oMessage = oMailDocument.GetMDN
' Load the mail document.
oMailDocument.Load App.Path & "\SampleMail.TXT"
A non-AS2 (or non-AS3) message requesting an MDN (without
having to call the EnableAcknowledgment property) must have the
following headers (Note: The option MailDocOpt_EnableMDN
also has to be already enabled):
Disposition-Notification-To. The header contains only one distinct address. Furthermore, the address specified by this headers must be the same as the address specified in the "Return-Path" header.
Return-Path. The address here must be the same as
that specified in the "Disposition-Notification-To"
header. If more than one “Return-Path” header exists, only the first is selected.
Message-ID. Identifier unique to the MDN message.
Example,
An AS2 or AS3 message requesting an MDN (without having to call
the EnableAcknowledgment property) must have the following headers
(Note: The option MailDocOpt_EnableMDN
also has to be already enabled):
AS2-To/AS2-From or AS3-To/AS3-From. The message must contain the headers "AS2-To" and "AS2-From" to indicate that it is an AS2 message, or "AS3-To" and "AS3-From" to indicate that it is an AS3 message.
Disposition-Notification-To. The value contained in this header is not relevant and is not used.
However, it must be present and it must be syntactically correct.